//
//  Interface.swift
//  WisdomSpace
//
//  Created by goulela on 2017/8/31.
//  Copyright © 2017年 MC. All rights reserved.
//

import Foundation


public let MCIP_app          = MCGetInterface_javaWithType(type: "/yg_bapp")
public let MCIP_order        = MCGetInterface_javaWithType(type: "/yg_bapp")
public let MCIP_goods        = MCGetInterface_javaWithType(type: "/yg_bapp")
public let MCH5              = MCGetInterface_h5()
public let MCIP_isProduct    = MCGetInterface_isProduct()


// MARK: -H5接口
// 店铺收款码
public let H5_wxPay                              = MCH5 + "b2c/pay/wxPay.html?"
// 用户协议
public let H5_userAgreement                      = MCH5 + "h5_yd/setting/agreement.html"
// 分享商品
public let H5_shareGoods                         = MCH5 + "h5_yd/b2c/goods/goods.html?"
// 分享店铺
public let H5_shareStore                         = MCH5 + "h5_yd/?"
// 分享优惠券
public let H5_shareTicket                        = MCH5 + "h5_yd/b2c/member/coupon.html?"
// 扫码支付
public let H5_codeTopay                          = MCH5 + "h5_yd/b2c/pay/codeTopay.html?"



//MARK: -JAVA 接口

// ==============================系统
// 上传图片 1：用户；2：店铺；3：商品评价；4："file/talentSerial/"；5："file/afterSales/"；6：店铺评价；7："file/yeePay/"
public let JAVA_imageBasePath                 = MCIP_app + "common/imageBasePath"
// 更新版本
public let JAVA_getVersionInfo                = MCIP_app + "version/getVersionInfo"
// -说明文案
public let JAVA_getCaption                    = MCIP_app + "systemBizConfig/getCaption"
// 请求小程序二维码图片地址
public let JAVA_getShareSmallProgramsCode     = MCIP_app + "userBaUser/getShareSmallProgramsCode"






// ==============================登录注册
// -验证手机号是否注册
public let JAVA_mobileIsRegister                 = MCIP_app + "baUser/MobileIsRegister"
// -获取验证码
public let JAVA_sendCode                         = MCIP_app + "baUser/sendCode"
// -登录(动态验证码)
public let JAVA_dynamicRegister                  = MCIP_app + "baUser/dynamicRegister"
// -登录(密码登录）
public let JAVA_login                            = MCIP_app + "baUser/login"
// -重置密码
public let JAVA_resetPassword                    = MCIP_app + "baUser/resetPassword"




// ==============================运费模板 （新版）
// 查询省市区（按字母排序）
public let JAVA_getProvinceCityAreaByOrder       = MCIP_app + "userAddress/getProvinceCityAreaByOrder"
// 新增/修改运费模板
public let JAVA_modifyFreightTemplate            = MCIP_app + "freightTemplateBa/modifyFreightTemplate"
// 运费模板分页查询
public let JAVA_findFreightTemplateInfoPage      = MCIP_app + "freightTemplateBa/findFreightTemplateInfoPage"





// ================================个人信息
// 修改头像
public let JAVA_alterUserPicture                 = MCIP_app + "baUser/alterUserPicture"
// 修改用户昵称
public let JAVA_updateNickName                   = MCIP_app + "baUser/updateNickName"
// 查询我的佣金
public let JAVA_getMyJournal                     = MCIP_app + "baUserJournal/getMyJournal"
// 查看用户信息
public let JAVA_getStoreUserByIdAndStoreId       = MCIP_app + "userBaUser/getStoreUserByIdAndStoreId"
// 查询我的核销记录
public let JAVA_getWriteOffRecord                = MCIP_app + "userBaUser/getWriteOffRecord"






// ================================店铺信息
// -查询店铺信息和店铺订单数量
public let JAVA_storeInformation                 = MCIP_app + "merchantStore/storeInformation"


// ================================商品

// 店铺内商品分类列表
public let JAVA_querySelfCategoryPage           = MCIP_app + "baSelfCategory/querySelfCategoryPage"

// 根据分类id查询商品列表
public let JAVA_queryGoodsBySelfCategoryId      = MCIP_app + "baSelfCategory/queryGoodsBySelfCategoryId"
// 店铺展示商品列表
public let JAVA_readonlyStoreGoodsList          = MCIP_app + "merchantGoods/readonlyStoreGoodsList"

public let JAVA_merchantStoreGoodsList          = MCIP_app + "merchantGoods/merchantStoreGoodsList"

// 查看货品售价和库存
public let JAVA_merchantStoreGoodsManage         = MCIP_app + "merchantGoods/merchantStoreGoodsManage"
// 批量修改库存
public let JAVA_editStoreProductInfo             = MCIP_app + "merchantGoods/editStoreProductInfo"
// 为平台选货 商品列表
public let JAVA_getBrandGoodsList                = MCIP_app + "merchantGoods/getBrandGoodsList"
// 为平台选货 品牌列表
public let JAVA_getStoreBrandList                = MCIP_app + "merchantGoods/getStoreBrandList"
// 为平台选货 批量上架
public let JAVA_setGoodsOnShelves                = MCIP_app + "merchantGoods/setGoodsOnShelves"
// 商品详情
public let JAVA_getGoodsPictures                 = MCIP_app + "merchantGoods/getGoodsPictures"
// 获取商品规格列表
public let JAVA_getGoodsSpecDesc                 = MCIP_app + "merchantGoods/getGoodsSpecDesc"
// 新增规格
public let JAVA_addGoodsSpecDesc                 = MCIP_app + "merchantGoods/addGoodsSpecDesc"
// 删除自建规格
public let JAVA_deleteSpecDesc                   = MCIP_app + "merchantGoods/deleteSpecDesc"
// 更新规格
public let JAVA_updateSpecDesc                   = MCIP_app + "merchantGoods/updateSpecDesc"
// 更改商品的运费模板
public let JAVA_updateFreightTemplate            = MCIP_app + "merchantGoods/updateFreightTemplate"
// 设置商品的分佣
public let JAVA_setGoodsCommission               = MCIP_app + "merchantGoods/setGoodsCommission"
// 自建商品
public let JAVA_addStoreGoods                    = MCIP_app + "merchantGoods/addStoreGoods"
// 修改自建商品
public let JAVA_updateStoreGoods                 = MCIP_app + "merchantGoods/updateStoreGoods"
// 删除自建商品
public let JAVA_deleteInvalidGoods               = MCIP_app + "merchantGoods/deleteInvalidGoods"
// 获取商品开票类型
public let JAVA_findBillTypeList                 = MCIP_app + "merchantGoods/findBillTypeList"




// 获取编辑商品页面信息
public let JAVA_getGoodsInfo                     = MCIP_app + "merchantGoods/getGoodsInfo"
// 获取运费模板
public let JAVA_getFreightList                   = MCIP_app + "freightTemplate/selectAll"
// 查询运费模板详情
public let JAVA_selectFreightTemplate            = MCIP_app + "freightTemplate/selectFreightTemplate"
// 新增运费模板
public let JAVA_addFreightTemplate               = MCIP_app + "freightTemplateBa/addFreightTemplate"



//================================ 商品的分类
// 更新分类的排序
public let JAVA_editCategoryOrderNo             = MCIP_app + "baSelfCategory/editCategoryOrderNo"
// 新增商品分类
public let JAVA_addCategory                     = MCIP_app + "baSelfCategory/addCategory"
// 修改商品分类
public let JAVA_updateCategory                  = MCIP_app + "baSelfCategory/updateCategory"
// 删除商品分类
public let JAVA_deleteCategory                  = MCIP_app + "baSelfCategory/deleteCategory"
// 修改商品所属分类
public let JAVA_editGoodsOfSelfCategory         = MCIP_app + "baSelfCategory/editGoodsOfSelfCategory"





// ================================优惠买单
// 优惠买单列表
public let JAVA_orderPayBaSelectByPage           = MCIP_app + "orderPayBa/selectByPage"
// 设置优惠比例
public let JAVA_updateStoreDiscount              = MCIP_app + "orderPayBa/updateStoreDiscount"






// ================================订单
// 全部订单列表
public let JAVA_getStoreOrderList                = MCIP_app + "baOrder/getStoreOrderList"
// 订单搜索
public let JAVA_selectOrderInfo                  = MCIP_app + "baOrder/selectOrderInfo"
// 订单详情
public let JAVA_getPersonageCentreListVoDetail   = MCIP_app + "baOrder/getPersonageCentreListVoDetail"
// 查看物流
public let JAVA_getLogistics                     = MCIP_app + "order/getLogistics"
// 支持的物流公司列表
public let JAVA_listBaExpressCompany             = MCIP_app + "BaLogisticsStatus/listBaExpressCompany"
// 发货
public let JAVA_updateOrderInfoStatus            = MCIP_app + "baOrder/updateOrderInfoStatus"
// 微商城订单统计
public let JAVA_mallStoreOrderStatistics         = MCIP_app + "baOrder/mallStoreOrderStatistics"



// ================================店铺
// 店铺详情
public let JAVA_getStoreDetail                   = MCIP_app + "userBaUser/getStoreDetail"
// 修改店铺收货地址
public let JAVA_changeStoreRefundAddress         = MCIP_app + "userBaUser/changeStoreRefundAddress"
// 获取省市区
public let JAVA_getProvinceCityArea              = MCIP_app + "userAddress/getProvinceCityArea"
// 开启或者关闭配送方式
public let JAVA_changeDistribution               = MCIP_app + "userBaUser/changeDistribution"
// 修改配送方式的内容
public let JAVA_updateDistributionTime           = MCIP_app + "userBaUser/updateDistributionTime"
// 查询门店流水
public let JAVA_storeJournal                     = MCIP_app + "baStore/storeJournal"
// 门店提现
public let JAVA_storeDraw                        = MCIP_app + "baStore/storeDraw"
// 切换店铺
public let JAVA_storeSelect                      = MCIP_app + "baStore/storeSelect"
// 更新店铺背景图
public let JAVA_saveStorePhoto                   = MCIP_app + "userBaUser/saveStorePhoto"



// ================================售后订单
// 订单列表
public let JAVA_getStoreAfterSales               = MCIP_app + "baAfterSales/getStoreAfterSales"
// 售后订单详细
public let JAVA_getAfterSalesDetail              = MCIP_app + "baAfterSales/getAfterSalesDetail"
// 售后订单的处理  （待处理状态下的，同意和拒绝售后）
public let JAVA_storeAfterSalesOption            = MCIP_app + "baAfterSales/storeAfterSalesOption"
// 售后订单的 （待退款的确认退款）
public let JAVA_storeRefund                      = MCIP_app + "baAfterSales/storeRefund"





// ================================优惠券
// 优惠券列表
public let JAVA_storePromotions                  = MCIP_app + "baPromotion/storePromotions"
// 删除优惠券
public let JAVA_delPromotionDetail               = MCIP_app + "baPromotion/delPromotionDetail"
// 新增优惠券
public let JAVA_insertStorePromotion             = MCIP_app + "baPromotion/insertStorePromotion"
// 更新优惠券
public let JAVA_updatePromotion                  = MCIP_app + "baPromotion/updatePromotion"
// 优惠券详情
public let JAVA_storePromotionDetail             = MCIP_app + "baPromotion/storePromotionDetail"
// 创建商品券的时候的商品列表
public let JAVA_getStoreGoods                    = MCIP_app + "baPromotion/getStoreGoods"
// 创建品牌券的时候的品牌列表
public let JAVA_getStoreBrands                   = MCIP_app + "baPromotion/getStoreBrands"




// ================================店员管理
// 店员列表
public let JAVA_getClerkList                    = MCIP_app + "baUser/getClerkList"
// 新增店员
public let JAVA_addClerk                        = MCIP_app + "baUser/addClerk"
// 删除店员
public let JAVA_deleteClerk                     = MCIP_app + "baUser/deleteClerk"
// 查询用户的社区列表
public let JAVA_findCommunityListByUserId        = MCIP_app + "communityMarketing/findCommunityListByUserId"
// 新增，修改社区信息
public let JAVA_updateCommunityOfUser            = MCIP_app + "communityMarketing/updateCommunityOfUser"
// 删除用户社区
public let JAVA_deleteCommunityOfUser            = MCIP_app + "communityMarketing/deleteCommunityOfUser"






// ==================================店长后台
//店长后台信息
public let JAVA_findBackstageInfo               = MCIP_app + "orderPayBa/findBackstageInfo"

// 更新指定店铺是否关闭语音播报
public let JAVA_updateCloseBroadcast            = MCIP_app + "orderPayBa/updateCloseBroadcast"


// ==================================二维码收款
// 获取指定某一天的收款明细
public let JAVA_findDailyReceiptsDetail         = MCIP_app + "orderPayBa/findDailyReceiptsDetail"
// 获取某月的收款明细
public let JAVA_findDailyReceipts               = MCIP_app + "orderPayBa/findDailyReceipts"
// 查询每月收款历史列表
public let JAVA_findMonthReceipts               = MCIP_app + "orderPayBa/findMonthReceipts"
// 刷卡支付
public let JAVA_microPay                        = MCIP_app + "qcloud/microPay"


// ===================================营销活动
// 营销页面的tab
public let JAVA_findMarketingTabs               = MCIP_app + "communityMarketing/findMarketingTabs"
// 营销首页
public let JAVA_findActivityInfoList            = MCIP_app + "communityMarketing/findActivityInfoList"
// 分销活动列表
public let JAVA_findActivityInfoListByPage      = MCIP_app + "communityMarketing/findActivityInfoListByPage"
// 查询店铺内有效的商品
public let JAVA_findGoodsOfStore                = MCIP_app + "communityMarketing/findGoodsOfStore"
// 发起或者修改营销活动
public let JAVA_addActivity                     = MCIP_app + "communityMarketing/addActivity"
// 查询营销活动详情
public let JAVA_findActivityDetailById          = MCIP_app + "communityMarketing/findActivityDetailById"
// 发起分销
public let JAVA_addLaunchDistribution           = MCIP_app + "communityMarketing/addLaunchDistribution"
// 获取分销活动小程序二维码信息
public let JAVA_findShareLinkContent            = MCIP_app + "communityMarketing/findShareLinkContent"



// 查询我的分销
public let JAVA_findMyMarketing                  = MCIP_app + "communityMarketing/findMyMarketing"
// 营销活动统计
public let JAVA_findActivityStatistics           = MCIP_app + "communityMarketing/findActivityStatistics"


// =================================== 账单信息 销售报表
// 订单列表
public let JAVA_getOrderStatisticsInfo           = MCIP_app + "orderStatistics/getOrderStatisticsInfo"
// 销售报表
public let JAVA_getOrderStatisticsChart          = MCIP_app + "orderStatistics/getOrderStatisticsChart"
// 销售额及订单数量
public let JAVA_getOrderStatisticsTitle          = MCIP_app + "orderStatistics/getOrderStatisticsTitle"


